package com.growthsee.rider.domain.dto;

import com.growthsee.rider.domain.RiderQuestion;
import com.growthsee.rider.domain.RiderQuestionExtend;
import com.growthsee.rider.domain.RiderQuestionOption;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;

@Data
public class RiderQuestionDto extends RiderQuestion {
    @ApiModelProperty(value = "选项")
    private List<RiderQuestionOption>options = new ArrayList<>();
    @ApiModelProperty(value = "题型名臣")
    private String typeName;
    @ApiModelProperty(value = "选项类型（0.单选1.多选）")
    private Integer optionType;
    @ApiModelProperty(value = "扩展信息")
    @Autowired
    private RiderQuestionExtend extend;

    @ApiModelProperty(value = "正确选项")
    private List<RiderQuestionOption>correctOptions = new ArrayList<>();
}
